package org.tao.lightningmq.common.enums;

/**
 * @Author lht
 * @date 2025/1/8 - 14:46
 * @description: 请求nameserver的响应码
 */
public enum NameServerResponseCode {
    ERROR_USER_OR_PASSWORD(1001,"账号验证异常"),
    UN_REGISTRY_SERVICE(1002,"服务正常下线"),
    REGISTRY_SUCCESS(1003,"注册成功"),
    HEART_BEAT_SUCCESS(1004,"心跳ACK"),
    PULL_BROKER_ADDRESS_SUCCESS(1005,"拉broker地址成功"),
    MASTER_START_REPLICATION_ACK(1006,"master回应slave节点开启同步")
    ;


    final int code;
    final String desc;

    NameServerResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
